import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

// 内业管理
const interiorWork = {
    path: '/interior-work',
    component: Layout,
    name: 'InteriorWork',
    meta: {
        title: '内业管理',
        code: 'dlyh_r_a5_1'
    },
    redirect: '/interior-work/road-property-compensation/case-list/index',
    children: [
        {
            path: 'road-property-compensation',
            name: 'RoadPropertyCompensation',
            meta: {
                title: '路产赔偿管理',
                code: 'dlyh_a5_b36_1',
                iconSvg: 'base',
            },
            component: LayoutInset,
            redirect: '/interior-work/road-property-compensation/case-list/index',
            children: [
                {
                    path: 'case-list',
                    name: 'CaseList',
                    meta: {
                        title: '案件目录',
                        code: 'dlyh_b36_c91_1',
                    },
                    component: LayoutInset,
                    redirect: '/interior-work/road-property-compensation/case-list/index',
                    children: [
                        {
                            path: 'index',
                            name: 'CaseListIndex',
                            meta: {
                                title: '列表',
                                componentName: 'CaseListIndex',
                                details: ['CaseListEdit', 'CaseListDetail'],
                            },
                            component: () => import('@/views/interior-work/road-property-compensation/case-list/index'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'CaseListDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/interior-work/road-property-compensation/case-list/index'
                            },
                            component: () => import('@/views/interior-work/road-property-compensation/case-list/detail'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'CaseListAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/interior-work/road-property-compensation/case-list/index'
                            },
                            component: () => import('@/views/interior-work/road-property-compensation/case-list/add'),
                            hide: true
                        },
                        {
                            path: 'edit',
                            name: 'CaseListEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/interior-work/road-property-compensation/case-list/index'
                            },
                            component: () => import('@/views/interior-work/road-property-compensation/case-list/add'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'compensation-statistics',
                    name: 'CompensationStatistics',
                    meta: {
                        title: '路产赔付统计',
                        code: 'dlyh_b36_c92_1',
                    },
                    component: LayoutInset,
                    redirect: '/interior-work/road-property-compensation/compensation-statistics/index',
                    children: [
                        {
                            path: 'index',
                            name: 'CompensationStatisticsIndex',
                            meta: {
                                title: '列表',
                                componentName: 'CompensationStatisticsIndex',
                                details: ['CompensationStatisticsEdit', 'CompensationStatisticsDetail'],
                            },
                            component: () => import('@/views/interior-work/road-property-compensation/compensation-statistics/index'),
                            hide: true
                        }
                    ]
                }
            ]
        }
    ]
}
export default interiorWork
